HTMLify

index.html
Views: 128 | Author: cody
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Pixel-EM Calculator</title>
    <!-- Google Font -->
    <link
      href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap"
      rel="stylesheet"
    />
    <!-- Stylesheet -->
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <div class="container">
      <h1>PX-EM Converter</h1>
      <div class="wrapper">
        <label for="inp-base-px">Base Pixel Size:</label>
        <input type="number" id="inp-base-px" value="16" />
      </div>
      <div class="wrapper">
        <div class="inp-wrapper">
          <label for="inp-px">PX:</label>
          <input type="number" id="inp-px" placeholder="px" />
        </div>
        <div class="inp-wrapper">
          <label for="inp-em">EM:</label>
          <input type="number" id="inp-em" placeholder="em" />
        </div>
      </div>
    </div>
    <!-- Script -->
    <script src="./script.js"></script>
  </body>
</html>

Comments